<div class="col_02" id="rightside">
	<div class="col_02_01" id="sysContent_box">
		<div class="main-wrap">
			<div class="m-t">
				<h2><b>Messages Received From Recruiters > ER Job Req #<a href="jobedit.php?action=edit&id={$job_id}">{$job_id}</a></b> - Messages {$type}({$appnum})</h2>
				<br /><b>Job Title</b> : {$jobdetail.jo_title}<br />
				<b>Job Status </b>: {$jobdetail.jo_status}<br />
				<b>Valid By Date </b>: {$jobdetail.jo_vdate}<br />
			</div>
		</div>
	</div>
	<div class="col_02_02" id="side_box">
		<div class="signIn">
			<h2 class="m_t m_t_gray">Member  Center</h2>
			<div class="m_c">
				<div class="mySigned" id="J_sign_form">
					<div id="loginboxx">
						<p class="info">Welcome, <span class="u_name">{$uname}</span>!</p>
						<p class="lnk_panel"><a href="settings.php" class="lnk_arrow">My Account</a></p>
						
						<p class="lnk_panel"><a href="#" onclick="return ajax_out()" class="lnk_arrow">Sign Out</a><div id="loadp"></div></p>
					</div>
				</div>
			</div>
			<div class="m_f"></div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="module_box mt_10" id="findResults">
		<div class="m_c">
	
{literal}
<script type="text/javascript">
checked=false;
function checkedAll() {
	var aa= document.getElementById('fm1');
	 if (checked == false)
	  {
	   checked = true
	  }
	 else
	  {
	  checked = false
	  }
	for (var i =0; i < aa.elements.length; i++) 
	{
	 aa.elements[i].checked = checked;
	}
}
</script>
{/literal}

	{$page}
	<form method="POST" id="fm1" action="?action=del&type=received&id={$job_id}" >
	<table width="100%" border="0" cellpadding="4" cellspacing="1" class="tableGrey">
		<tr class="white">
			<th width="14%"><a href="contactlist.php?&id={$job_id}&order1={$order_arr.1}&swh=1&tp=1&tpp={$tpp}" >Date/Time{$image_arr.1}</a></th>
			<th><a href="contactlist.php?&id={$job_id}&order2={$order_arr.2}&swh=2&tp=1&tpp={$tpp}" >From {$image_arr.2}</a></th>
			<th width="34%"><a href="contactlist.php?&id={$job_id}&order3={$order_arr.3}&swh=3&tp=1&tpp={$tpp}" >Subject {$image_arr.3}</a></th>
			<th><a href="contactlist.php?&id={$job_id}&order4={$order_arr.4}&swh=4&tp=1&tpp={$tpp}" >Approval Status {$image_arr.4}</a><a href="###" onmouseover="Tip('Click on the Approved button to allow the recruiter to submit candidates to your job. You may change or remove an approved status at anytime by clicking on the \'Remove \' button', WIDTH, 200,OFFSETY,20, SHADOW, true)"><img src="images/icn_question.jpg" border="0" align="absmiddle" /></a></th>
			<th><input type="checkbox" name="" onClick="checkedAll()"/> <input value="Delete" type="submit" name="delete" onclick="return checkdelall()" class="button-secondary"></th>
		</tr>
	    {section name=custom loop=$contactlist}
		<tr class="hotline {cycle values="odd,even"}">
			<td>{$contactlist[custom].app_regtime}</td>
			<td><a href="recdetail.php?id={$contactlist[custom].re_uid}" target="_blank">{$contactlist[custom].re_fname} {$contactlist[custom].re_lname}</a></td>
			<td>
			{if $contactlist[custom].re_subject == 'Manually added to this job'}
			{$contactlist[custom].re_subject}
			{else}
			<a href="contactresumeview.php?rid={$contactlist[custom].re_id}" >{$contactlist[custom].re_subject}</a>
			{/if}
			</td>
			<td>
			{if $contactlist[custom].re_isapproved == 0}
			<b>Pending</b>
			<input type="button" value="Approve" onclick="if(confirm('Sure you want to approve it?')){ldelim}location.href='contactlist.php?&id={$job_id}&tpp=posted&action=updatestats&reid={$contactlist[custom].re_id}&stats=1'{rdelim}" class="button-secondary" />
			{elseif $contactlist[custom].re_isapproved == 1}
			<font color="blue"><b>Approved</b></font><input type="button" value="Remove" onclick="if(confirm('Sure you want to remove it?')){ldelim}location.href='contactlist.php?&id={$job_id}&tpp=posted&action=updatestats&reid={$contactlist[custom].re_id}&stats=0'{rdelim}" class="button-secondary"/>
			{elseif $contactlist[custom].re_isapproved == 2}
			<font color="red">Removed</font>
			{/if}
			</td>
			<td><input type="checkbox" name="del[]" value="{$contactlist[custom].re_id}" ><input type="button" value="Reply" onclick="location.href='contactreply.php?rid={$contactlist[custom].re_id}'" class="button-secondary"/>{if $contactlist[custom].re_upload !=''}<a href="uploadfiles/contact/{$contactlist[custom].re_upload}" target="_blank">Document</a>{/if}
			{if $contactlist[custom].re_isreplied == 1}
			<a href="###" onmouseover="Tip('Already Replied', WIDTH, 100,OFFSETY,20, SHADOW, true)"><img src="images/0308.png" border="0" align="absmiddle" /></a>
			{/if}
			</td>
		</tr>
	     {sectionelse}
		<tr  class="hotline {cycle values="odd,even"}">
			<td colspan="8"><font color=red>No data was found for selected field(s).</font></td>
		</tr>
	     {/section}
	</table>
	</form>
        {$page}
</div><input type="button" value="Back" onclick="location.href='mypostjobs.php'" class="button-secondary">
</div>
</div>
				</div>
			</div>
		</div>
	</div>
</section>